Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/md parsing #1513

Merged
merged 5 commits into from
May 13, 2024
Merged

Fix/md parsing #1513

merged 5 commits into from
May 13, 2024

Conversation

linusha
Copy link
Contributor

@linusha linusha commented May 13, 2024

I recently tried tackling a bug in our markdown syntax highlighting which was not detecting the end of a quote (as indicated by an empty line) correctly. I then tried to fix this by updating the markdown mode code that we reuse from codemirror5.
However, we then found out that the newer markdown code requires some more fundamental changes to the glue code in which we plug the editor modes in, as the new mode crashed for example when visiting a !.
Thus, I reverted the update and fixed the underlying bug in the quote end detection which came to be as we did not pass empty lines to the parser correctly but just skipped them. Thus, empty lines in markdown could never reset the current style correctly.

This is not the only issue with the markdown syntax highlighting, but the most severe one.

Upgrading to the more modern codemirror5 md mode or even to the one from codemirror6 requires significantly more work, which I why postpone it indefinitely.

Closes #1512.

@linusha linusha merged commit fa74c5b into main May 13, 2024
4 checks passed
@linusha linusha deleted the fix/md-parsing branch May 13, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening Mardown files in SystemBrowser causes parser crash
2 participants